Text Style Props
This roadmap outlines the necessary Text style props to implement for SolidNative, along with their descriptions and type signatures.
iOS Specific Props
- [ ] fontVariant: Specifies font variants for text.
- Type:
FontVariant[] | undefined
- Type:
- [ ] textDecorationColor: Sets the color of the text decoration.
- Type:
ColorValue | undefined
- Type:
- [ ] textDecorationStyle: Sets the style of the text decoration (solid, double, dotted, dashed).
- Type:
'solid' | 'double' | 'dotted' | 'dashed' | undefined
- Type:
- [ ] writingDirection: Sets the writing direction for text.
- Type:
'auto' | 'ltr' | 'rtl' | undefined
- Type:
Android Specific Props
- [ ] textAlignVertical: Sets the vertical alignment of text.
- Type:
'auto' | 'top' | 'bottom' | 'center' | undefined
- Type:
- [ ] verticalAlign: Sets the vertical alignment within the parent element.
- Type:
'auto' | 'top' | 'bottom' | 'middle' | undefined
- Type:
- [ ] includeFontPadding: Controls whether the text includes extra font padding.
- Type:
boolean | undefined
- Type:
Common Text Style Props
- [ ] color: Sets the color of the text.
- Type:
ColorValue | undefined
- Type:
- [ ] fontFamily: Sets the font family for the text.
- Type:
string | undefined
- Type:
- [ ] fontSize: Sets the font size of the text.
- Type:
number | undefined
- Type:
- [ ] fontStyle: Sets the style of the font (normal, italic).
- Type:
'normal' | 'italic' | undefined
- Type:
- [ ] fontWeight: Specifies the font weight.
- Type:
'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | 'ultralight' | 'thin' | 'light' | 'medium' | 'regular' | 'semibold' | 'condensedBold' | 'condensed' | 'heavy' | 'black' | undefined
- Type:
- [ ] letterSpacing: Sets the spacing between characters.
- Type:
number | undefined
- Type:
- [ ] lineHeight: Sets the height of a line of text.
- Type:
number | undefined
- Type:
- [ ] textAlign: Sets the alignment of text (auto, left, right, center, justify).
- Type:
'auto' | 'left' | 'right' | 'center' | 'justify' | undefined
- Type:
- [ ] textDecorationLine: Sets the decoration line for text (none, underline, line-through, underline line-through).
- Type:
'none' | 'underline' | 'line-through' | 'underline line-through' | undefined
- Type:
- [ ] textDecorationStyle: Sets the style of the text decoration (solid, double, dotted, dashed).
- Type:
'solid' | 'double' | 'dotted' | 'dashed' | undefined
- Type:
- [ ] textDecorationColor: Sets the color of the text decoration.
- Type:
ColorValue | undefined
- Type:
- [ ] textShadowColor: Sets the color of the text shadow.
- Type:
ColorValue | undefined
- Type:
- [ ] textShadowOffset: Sets the offset for the text shadow.
- Type:
{width: number; height: number} | undefined
- Type:
- [ ] textShadowRadius: Sets the radius of the text shadow.
- Type:
number | undefined
- Type:
- [ ] textTransform: Controls the capitalization of text (none, capitalize, uppercase, lowercase).
- Type:
'none' | 'capitalize' | 'uppercase' | 'lowercase' | undefined
- Type:
- [ ] userSelect: Controls whether the text can be selected.
- Type:
'auto' | 'none' | 'text' | 'contain' | 'all' | undefined
- Type: